package hanjia;

public class hanjia13 {
	public static void main (String [] args){
		double n1=0;
		double n2=0;
		for (int i=0;i<100000;i++){
			n1=Math.sqrt((i+100));
			n2=Math.sqrt((i+268));
			if (n1==(int)n1 && n2==(int)n2){
				System.out.println(i);
			}
		}
		
	}
}
